package com.service;
import java.util.List;
import com.model.TGonggao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
import com.mapper.TGonggaoMapper;
@Service
public class TGonggaoServiceImpl implements TGonggaoService
{
        
        @Autowired
	private TGonggaoMapper tGonggaoMapper;


	public List<TGonggao> queryTGonggaoList(TGonggao tGonggao) throws Exception {
		Map<String, Object> map = new HashMap<String, Object>();
		if(tGonggao!=null){
			 
		}
		
		List<TGonggao> getTGonggao = tGonggaoMapper.query(map);
		return getTGonggao;
	}

	public int insertTGonggao(TGonggao tGonggao) throws Exception {
		
		return tGonggaoMapper.insertTGonggao(tGonggao);
	}

	public int deleteTGonggao(int id) throws Exception {
		return tGonggaoMapper.deleteTGonggao(id);
	}

	public int updateTGonggao(TGonggao tGonggao) throws Exception {
		return tGonggaoMapper.updateTGonggao(tGonggao);
	}
	
	public TGonggao queryTGonggaoById(int id) throws Exception {
		return tGonggaoMapper.queryTGonggaoById(id);
	}
 
}
